    <meta charset="utf-8">
    <title>会员交易记录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="网站描述">
    <meta name="keywords" content="">
    <meta name="author" content="wangl">
    <link rel="icon" href="http://ow9lg82yy.bkt.clouddn.com/24f5c360-485d-4a6d-9468-2a61c353cf37.ico">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all">
    <link rel="stylesheet" href="/static/css/user.css" media="all">
    <link rel="stylesheet" href="/static/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .Pagination ul{
            list-style: none;
        }
        .Pagination .total_num,.first_page,.prepage,.list_box,.nextpage,.last_page,.total_page,input,.redir {
            float: left;
        }
        .Pagination ul li {
            float: left;
            background-color: #ccc;
            border-radius: 5px;
            text-align: center;
            line-height: 22px;
            width: 22px;
            height: 22px;
            font-size: 12px;
            margin: 0 5px;
            cursor: pointer;
            color: #8b8b8b
        }
        .Pagination ul li:hover {
            background-color: #58acf4;
            color: #fff;
        }

        .Pagination .total_num i {
            font-style: normal;
        }
        .Pagination .list_box {
            width: 320px;
            overflow: hidden;
            position: relative;
            height: 32px;
        }
        .Pagination .list_box ul {
            position: absolute;
            top: 0;
            left: 0;
        }
        .Pagination .prepage {
            background-color: #ccc;
            border-radius: 5px;
            padding: 3px 10px;
            font-size: 12px;
            margin: 0 5px;
            cursor: pointer;
            color: #8b8b8b
        }
        .Pagination .prepage:hover {
            background-color: #58acf4;
            color: #fff;
        }
        .Pagination .nextpage {
            background-color: #ccc;
            border-radius: 5px;
            padding: 3px 10px;
            font-size: 12px;
            margin: 0 5px;
            cursor: pointer;
            color: #8b8b8b
        }
        .Pagination .nextpage:hover {
            background-color: #58acf4;
            color: #fff;
        }
        .Pagination .first_page {
            background-color: #ccc;
            border-radius: 5px;
            padding: 3px 10px;
            font-size: 12px;
            margin: 0 5px;
            cursor: pointer;
            color: #8b8b8b
        }
        .Pagination .first_page:hover {
            background-color: #58acf4;
            color: #fff;
        }
        .Pagination .last_page {
            background-color: #ccc;
            border-radius: 5px;
            padding: 3px 10px;
            font-size: 12px;
            margin: 0 5px;
            cursor: pointer;
            color: #8b8b8b
        }
        .Pagination .last_page:hover {
            background-color: #58acf4;
            color: #fff;
        }

        .Pagination input {
            width: 50px;
            height: 25px;
            border-radius: 5px;
            border: 1px solid #ccc;
            outline: none;
            text-indent: 5px;
            margin: 0 5px;
        }

        .detail-body {
            margin: 20px 0 0;
            min-height: 306px;
            line-height: 26px;
            font-size: 16px;
            color: #333;
            word-wrap: break-word;
        }

        /* blockquote 样式 */
        blockquote {
            display: block;
            border-left: 8px solid #d0e5f2;
            padding: 5px 10px;
            margin: 10px 0;
            line-height: 1.4;
            font-size: 100%;
            background-color: #f1f1f1;
        }

        /***
        *  ztree 图标变成黄色
        */
        .ztree .line {
            line-height: 0;
            border-top: none;
            float: none;
        }

        .ztree li span.button.ico_docu {
            background-position: -110px 0;
            margin-right: 2px;
            vertical-align: top;
        }

        /* code 样式 */
        code {
            display: inline-block;
            *display: inline;
            *zoom: 1;
            background-color: #f1f1f1;
            border-radius: 3px;
            padding: 3px 5px;
            margin: 0 3px;
        }

        pre code {
            display: block;
        }

    </style>
    <style>.laytable-cell-1-0 {
        width: 48px;
    }

    .laytable-cell-1-title {
        width: 150px;
    }

    .laytable-cell-1-link {
        width: 150px;
    }

    .laytable-cell-1-newsid {
        width: 80px;
    }

    .laytable-cell-1-content {
        width: 400px;
    }

    .laytable-cell-1-publistTime {
        width: 200px;
    }

    .laytable-cell-1-9 {
        width: 250px;
    }</style>
</head>
<body class="childrenBody">
<div class="layui-col-xs2">
    <div class="grid-demo grid-demo-bg1">
        <ul id="treeDemo" class="ztree"></ul>
    </div>
</div>
<div class="layui-col-xs10">
    <fieldset class="layui-elem-field">
        <legend>快讯检索</legend>
        <div class="layui-field-box">
            <form class="layui-form" id="searchForm">
                <div class="layui-inline" style="margin-left: 15px">
                    <label>标题:</label>
                    <div class="layui-input-inline">
                        <input type="text" value="" name="s_title" placeholder="请输入标题" class="layui-input search_input">
                    </div>
                </div>
                <div class="layui-inline" style="margin-left: 15px">
                    <label>发布时间:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="s_beginPublistTime" id="beginPublistTime" lay-verify="date"
                               autocomplete="off" class="layui-input" lay-key="1">
                    </div>
                    <span>-</span>
                    <div class="layui-input-inline">
                        <input type="text" name="s_endPublistTime" id="endPublistTime" lay-verify="date"
                               autocomplete="off" class="layui-input" lay-key="2">
                    </div>
                </div>
                <div class="layui-inline" style="margin-left: 15px">
                    <label>内容:</label>
                    <div class="layui-input-inline">
                        <input type="text" value="" name="s_content" placeholder="请输入内容"
                               class="layui-input search_input">
                    </div>
                </div>
                <div class="layui-inline">
                    <a class="layui-btn" lay-submit="" lay-filter="searchForm">查询</a>
                </div>
                <div class="layui-inline">
                    <#--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
                </div>
                <div class="layui-inline">
                    <a href="addpage" class="layui-btn layui-btn-normal" data-type="addBlogArticle">添加快讯</a>
                </div>
            </form>
        </div>
    </fieldset>
    <div class="layui-form users_list">
        <table class="layui-table" id="test" lay-filter="demo"></table>
        <div class="layui-form users_list">
            <table class="layui-table" id="test" lay-filter="demo"></table>
            <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1"
                 style="width:1279.1666666666667px; ">
                <div class="layui-table-box">
                    <div class="layui-table-header">
                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
                            <thead>
                            <tr>
                                <th data-field="newsid">
                                    <div class="layui-table-cell laytable-cell-1-newsid"><span>编号</span></div>
                                </th>
                                <th data-field="dealScene">
                                    <div class="layui-table-cell laytable-cell-1-title"><span>交易类型</span></div>
                                </th>
                                <th data-field="coinTypeName">
                                    <div class="layui-table-cell laytable-cell-1-content"><span>币种名称</span></div>
                                </th>
                                <th data-field="singlePrice">
                                    <div class="layui-table-cell laytable-cell-1-link"><span>单价</span></div>
                                </th>
                                <th data-field="dealAliveCoinCount">
                                    <div class="layui-table-cell laytable-cell-1-title"><span>数量</span></div>
                                </th>
                                <th data-field="publistTime" data-unresize="true">
                                    <div class="layui-table-cell laytable-cell-1-publistTime"><span>交易时间</span></div>
                                </th>
                            </tr>
                            </thead>
                            <tbody id="newsList">
                            </tbody>
                        </table>
                        <div class="box-tools pull-right">
                            <ul class="pagination" id="pagination_ul">
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/tools.js"></script>
<script type="text/javascript" src="/static/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/static/js/CodeConst.js"></script>
<!-- <#--<script type="text/javascript" src="/static/js/jquery-1.10.2.js"></script>--> -->
<script>

    //遍历baseDto
    function loadData(baseDto) {
        if (baseDto.code == ERROR)
            console.log(baseDto.msg);
        else {
            //数据
            var data = baseDto.data.list;
            var text = "";
            $.each(data, function (index, dealHistory) {
                 text += "<tr>\n" +
                        "<td>" + dealHistory.id + "</td>\n" +
                        "<td>" + dealHistory.dealScene + "</td>\n" +
                        "<td>" + dealHistory.coinTypeName + "</td>\n" +
                        "<td>" + dealHistory.singlePrice + "</td>\n" +
                        "<td>" + dealHistory.dealAliveCointCount + "</td>\n" +
                        "<td>" + dealHistory.createTime + "</td>\n" +
                        "</tr>";
            });
            var newsListDom = $("#newsList");
            newsListDom.empty();//清空子元素
            newsListDom.append($(text));
            var pages = baseDto.data.pages;
            var pageNum = baseDto.data.pageNum;
            console.log("pageNum="+pageNum);
            var btnList = "";
            btnList += "<li class='first_page'><a onclick='loadPage(this)' link='/back/content/news/list'>"+"首页"+"</a></li>";
            var temp = "<li class='prepage'><a onclick='loadPage(this)' link='/back/content/news/list?pageNum=" + (pageNum - 1) + "'>上一页</a></li>";
            console.log("temp="+temp);
            btnList += temp;
            for (var i = 0; i < pages; i++) {
                btnList += ("<li class='prepage'><a onclick='loadPage(this)' link='/back/content/news/list?pageNum=" + (i+1) + "'>"+(i+1)+"</a></li>\n")
            }
            btnList +=("<li class='nextpage'><a onclick='loadPage(this)' link='/back/content/news/list?pageNum=" + (pageNum + 1) + "'>下一页</a></li>\n" +
                    "<li class='last_page' ><a onclick='loadPage(this)' link='/back/content/news/list?pageNum=" + pages + "'>末页</a></li>");
            console.log(btnList);
            var pagination_ul = $("#pagination_ul");
            pagination_ul.empty();
            pagination_ul.append(btnList);

        }
    }

    function loadPage(a)
    {
        var a_jquery = $(a);
        var url = a_jquery.attr("link");
        $.ajax(
                {
                    url: url,
                    type: "GET",
                    success: function (baseDto) {
                        loadData(baseDto);
                    }
                }
        );
    }

    //获取数据
    var url = location.search;
    var userId = url.split('=')[1];

    //获取数据
    $.ajax({
        url: "/back/admin/admin/bankInfoList",
        type: "GET",
        dataType: 'json',
        data:{
            userId:userId
        },
        success: function (baseDto) {
            loadData(baseDto);
        }
    });

    var url = location.search;
    var userId = url.split('=')[1];

    $.ajax({
        url: "/back/finance/statistical/userDealHistory",
        type: "GET",
        data:{
            userId:userId
        }
        success: function (baseDto) {
            loadData(baseDto);
        }
    });

</script>


</html>